package zip

import (
	"compress/flate"
	"github.com/mholt/archiver"
	"io"
)

var z archiver.Zip

func init() {
	z = archiver.Zip{
		CompressionLevel:       flate.DefaultCompression,
		MkdirAll:               true,
		SelectiveCompression:   true,
		ContinueOnError:        false,
		OverwriteExisting:      false,
		ImplicitTopLevelFolder: false,
	}

}

func Zip(sources []string, destination string) error {
	err := z.Archive(sources, destination)
	return err
}

func UnZip() error {
	return nil
}

func ZipFromStream(writer io.WriteCloser, destination string) error {

	return nil
}
